def average_list(list1:list):
    sum_num = 0
    for i in list1:
        sum_num += i

    return sum_num/len(list1)


if __name__ == '__main__':
    list111 = [1,2,3,4]
    average1 = average_list(list111)
    print(average1)